package com.yellowpage.omc.keyword.data;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 * KeywordCustomer entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "OMC_KEYWORD_CUSTOMER")
public class KeywordCustomer implements java.io.Serializable {

	// Fields

	private Long keywordCustomerId;
	private Integer keywordId;
	private Integer custId;
	private Integer sort_order;
	private String status;
	private Integer createUser;
	private Date createTime;
	private Integer lastUpdateUser;
	private Date lastUpdateTime;

	// Constructors

	/** default constructor */
	public KeywordCustomer() {
	}

	/** minimal constructor */
	public KeywordCustomer(Integer keywordId, Integer custId) {
		this.keywordId = keywordId;
		this.custId = custId;
	}

	/** full constructor */
	public KeywordCustomer(Integer keywordId, Integer custId, Integer sort_order,
			String status, Integer createUser, Date createTime,
			Integer lastUpdateUser, Date lastUpdateTime) {
		this.keywordId = keywordId;
		this.custId = custId;
		this.sort_order = sort_order;
		this.status = status;
		this.createUser = createUser;
		this.createTime = createTime;
		this.lastUpdateUser = lastUpdateUser;
		this.lastUpdateTime = lastUpdateTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "KEYWORD_CUSTOMER_ID", unique = true, nullable = false)
	public Long getKeywordCustomerId() {
		return this.keywordCustomerId;
	}

	public void setKeywordCustomerId(Long keywordCustomerId) {
		this.keywordCustomerId = keywordCustomerId;
	}

	@Column(name = "KEYWORD_ID", nullable = false)
	public Integer getKeywordId() {
		return this.keywordId;
	}

	public void setKeywordId(Integer keywordId) {
		this.keywordId = keywordId;
	}

	@Column(name = "CUST_ID", nullable = false)
	public Integer getCustId() {
		return this.custId;
	}

	public void setCustId(Integer custId) {
		this.custId = custId;
	}

	@Column(name = "SORT_ORDER")
	public Integer getSort_order() {
		return this.sort_order;
	}

	public void setSort_order(Integer sort_order) {
		this.sort_order = sort_order;
	}

	@Column(name = "STATUS", length = 10)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "CREATE_USER")
	public Integer getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CREATE_TIME", length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "LAST_UPDATE_USER")
	public Integer getLastUpdateUser() {
		return this.lastUpdateUser;
	}

	public void setLastUpdateUser(Integer lastUpdateUser) {
		this.lastUpdateUser = lastUpdateUser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "LAST_UPDATE_TIME", length = 0)
	public Date getLastUpdateTime() {
		return this.lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

}